//package com.zlc.workflow.Interceptor;
//
//import com.zlc.common.common.entity.BusinessResult;
//import com.zlc.common.common.exception.BusinessException;
//import com.zlc.common.common.service.ContextHolder;
//import com.zlc.common.util.UserInfo;
//import com.zlc.common.util.JsonHelper;
//import com.zlc.common.util.RestTemplateUtils;
//import com.zlc.workflow.core.base.model.WorkflowUser;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//import org.springframework.util.ObjectUtils;
//import org.springframework.web.servlet.HandlerInterceptor;
//import org.springframework.web.servlet.ModelAndView;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//import java.nio.charset.StandardCharsets;
//import java.util.Arrays;
//import java.util.Collections;
//import java.util.List;
//
//import static com.zlc.common.common.constant.PlatConstant.LoginConstant.NOW_USER;
//
///**
// * 登录拦截
// * @author zl
// */
//@Slf4j
//@Component
//public class WebInterceptor implements HandlerInterceptor {
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws BusinessException {
//        return true;
//    }
//
//    @Override
//    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
//        log.info("this is postHandle ...");
//    }
//
//    @Override
//    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
//        log.info("this is afterCompletion ...");
//        ContextHolder.clearContext();
//    }
//
//}
